package com.rb.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by Brooks on 2014/5/7.
 */
@Entity
public class 数据字典 {
    private String id;
    private String 字典类别;
    private String 字典名称;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "字典类别")
    public String get字典类别() {
        return 字典类别;
    }

    public void set字典类别(String 字典类别) {
        this.字典类别 = 字典类别;
    }

    @Basic
    @Column(name = "字典名称")
    public String get字典名称() {
        return 字典名称;
    }

    public void set字典名称(String 字典名称) {
        this.字典名称 = 字典名称;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        数据字典 数据字典 = (数据字典) o;

        if (id != null ? !id.equals(数据字典.id) : 数据字典.id != null) return false;
        if (字典名称 != null ? !字典名称.equals(数据字典.字典名称) : 数据字典.字典名称 != null) return false;
        if (字典类别 != null ? !字典类别.equals(数据字典.字典类别) : 数据字典.字典类别 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (字典类别 != null ? 字典类别.hashCode() : 0);
        result = 31 * result + (字典名称 != null ? 字典名称.hashCode() : 0);
        return result;
    }
}
